//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "NoeudRelation.h"

#include <assert.h>

//---------------------------------------------------------------------------

#pragma package(smart_init)


__fastcall NoeudRelation::NoeudRelation() :
  NoeudConcept()
{
  FReciproque = NULL;
}

__fastcall NoeudRelation::~NoeudRelation()
{
  //TODO: Ajoutez votre code ici
}

void __fastcall NoeudRelation::SetReciproque(NoeudRelation * value)
{
  if(FReciproque != value) {

    assert(value == NULL || value->FReciproque == NULL);

    if (FReciproque != NULL) {
      assert(FReciproque->FReciproque == this);
      FReciproque->FReciproque = NULL;
    }

    FReciproque = value;

    if (FReciproque != NULL) {
      FReciproque->FReciproque = this;
    }
  }
}
